package cn.dai.pojo;

/**
 * @author daijiyong
 */

public enum ReturnCode {
    SUCCESS("000000", "操作成功！"),
    FAIL("999999", "操作失败！"),

    INVALID_TOKEN("100000", "访问令牌不合法或已过期"),
    USERNAME_OR_PASSWORD_ERROR("100001", "用户名或密码错误");


    /**
     * 自定义状态码
     **/
    private final String status;
    /**
     * 自定义描述
     **/
    private final String message;

    ReturnCode(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public String getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
